package com.gmu.service;

import com.gmu.domain.ResResult;
import com.gmu.domain.vo.PageVo;
import com.gmu.pojo.TblActivities;
import com.baomidou.mybatisplus.extension.service.IService;

import java.text.ParseException;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 测核酸活动 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
public interface TblActivitiesService extends IService<TblActivities> {

    /**
     * 提交一次活动
     * @param tblActivities
     * @return
     */
    ResResult<TblActivities> commitActivities(TblActivities tblActivities);

    ResResult<?> showReservationActivities(Integer unitsId);

    PageVo<?> getActivityRecordList(Integer pageNum, Integer pageSize, TblActivities tblActivities, String beginTime, String endTime);

    ResResult<?> deleteRecord(Integer[] activitiesIds);

    List<TblActivities> exportRecord(TblActivities tblActivities, String beginTime, String endTime);

    ResResult<?> getAllActivitiesByUnitsId(Integer unitsId);

    ResResult<?> getAllActivitiesHeld(Integer unitsId);
}
